package com.geekaca.news.service;

import com.geekaca.news.domain.NewsComment;
import com.geekaca.news.utils.PageBean;
import com.geekaca.news.utils.PageResult;

import javax.xml.stream.events.Comment;
import java.util.List;

public interface CommentService {
    int getTotalComments();

    List<NewsComment> getCommentList(int page, int limit);

    int updateComment(int commentId, String replyBody);

    int deleteCommentByid(Long id);

    int checkDone(Long id);

    int addComment(NewsComment comment);

    PageResult getCommentsPage(PageBean pageBean);


    int getTotalComentCountByNewsId(Long newsId);
}
